#{extends 'main.html' /}
#{set title:'Home' /}

<div id="centandrightcontainer">

<div class="centcolumn">
	<div class="centcolumnpad">

	<h2>Bienvenue sur Canazat</h2>
	Hello !
	#{if regates}
		<div class="dernierescourses">
			<h3>Courses &agrave; venir</h3>
			#{list items:regates, as:'regate'}
			<div class="course">
				<span class="nomcourse">
					${regate.libelle},
				</span>
				<span class="departcourse">
					d&eacute;part le : ${regate.date_depart.format("dd/MM/yyyy, HH'h'mm")}
				</span>
				<br/>
				<span class="departcourse">
					date limite d'incription : ${regate.date_limite_inscription.format("dd/MM/yyyy, HH'h'mm")}
				</span>
				<br/>
				<span>
					
					<a href="@{Application.inscrire_course(regate.id)}">S'inscrire</a>
				</span>
				<br/><br/>
			</div>
			#{/list}
		</div>
	#{/if}
	
	#{if rapport}
	
		<div>
			<span>${rapport}</span>
		</div>
		
	#{/if}
	</div>
</div>
